<section class="content-header">
    <h1>${(module.addTitle)!}</h1>
</section>
<!-- Main content -->
<section class="content" style="z-index: 9999">
    <form action="${CPATH}/admin/content/save" id="form" method="post">
        <input type="hidden" name="content.module" value="${(content.module)!m!}">
        <input type="hidden" id="content_id" name="content.id" value="${(content.id)!}">
        <input type="hidden" name="content.status" value="normal" id="content_status">
        <input type="hidden" name="content.created" value="${(content.created)!}">
        <input type="hidden" id="content_slug" name="content.slug" value="${(content.slug)!}">
        <input type="hidden" name="ucode" value="${ucode}">
        <div class="row">
            <!-- /.col -->
            <div class="col-md-9">
                <div class="form-group">
                    <input name="content.title" class="form-control input-lg" id="title" value="${(content.title)!}"
                           type="text" placeholder="在此输入标题">
                </div>
                <div class="pull-right"><a href="javascript:void(0);" onclick="doChangeEditor()">切换编辑器 </a></div>
                <label>
                    <#if slugDisplay ??>
                        网址：<span id="url_preffix"></span><span id="slug_text">${(content.slug)!}</span>${(urlSuffix)!}
                    </#if>
                </label>
                <div class="box box-solid">
                    <div class="box-body no-padding">
                        <textarea id="textarea" name="content.text">
                             <#if (content.text)! == "">
                                 <div class="x-details-content x-padding-top-10 x-padding-bottom-10 aritcle">
                                    <div style="margin: 5px; padding: 10px; background-color: #e7f2f0; border: 1px #c2e4f4 solid; width: 100%;">
                                        <p>技术：redis + java8</p>
                                        <p>运行环境：IDEA 15.2 + jdk8 + windows 7</p>
                                        <p>demo功能：提供一个redis基础操作封装</p>
                                    </div>
                                 </div>
                                <div style="border-bottom: none; border-left: 6px #e3cf80 solid; padding-bottom: 0; padding-left: 10px; margin-top: 20px;">
                                <h1>步骤1</h1>
                                <p>xxxxxxxxxxxxxxxxxxxxxxx</p>
                                </div>
                                <div style="border-bottom: none; border-left: 6px #e3cf80 solid; padding-bottom: 0; padding-left: 10px; margin-top: 20px;">
                                <h1>步骤2</h1>
                                <p>xxxxxxxxxxxxxxxxxxxxxxx</p>
                                </div>
                                <div style="border-bottom: none; border-left: 6px #e3cf80 solid; padding-bottom: 0; padding-left: 10px; margin-top: 20px;">
                                <h1>步骤3</h1>
                                <p>xxxxxxxxxxxxxxxxxxxxxxx</p>
                                </div>
                                <div style="border-bottom: none; border-left: 6px #e3cf80 solid; padding-bottom: 0; padding-left: 10px; margin-top: 20px;">
                                <h1>步骤4</h1>
                                <p>xxxxxxxxxxxxxxxxxxxxxxx</p>
                                </div>
                                <div style="border-bottom: none; border-left: 6px #e3cf80 solid; padding-bottom: 0; padding-left: 10px; margin-top: 20px;">
                                <h1>步骤5</h1>
                                <p>xxxxxxxxxxxxxxxxxxxxxxx</p>
                                </div>
                            <#else>
                                    ${(content.text)!}
                            </#if>

                        </textarea>
                    </div>
                </div>
                <#include "_props_box.html" />
            </div>
            <!-- /.col -->
            <div class="col-md-3">
                <#include "_action_box.html" />
                <#if module ??>
                    <#list module.taxonomyTypes! as taxonomyType >
                        <#if taxonomyType.formType == "select">
                            <#include "_select_box.html" />
                            <#else>
                                <#include "_input_box.html" />
                        </#if>
                    </#list>
                </#if>
                <#include "_thumbnail_box.html" />
            </div>
        </div>
        <!-- /.row -->
    </form>
</section>
